```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>消息中间件对比指南 | 技术小馆</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        h1, h2, h3, h4 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 600;
            margin-top: 1.5em;
            margin-bottom: 0.8em;
        }
        h1 {
            font-size: 2.5rem;
            color: #2c3e50;
            border-bottom: 2px solid #eee;
            padding-bottom: 0.5rem;
        }
        h2 {
            font-size: 2rem;
            color: #3498db;
            position: relative;
            padding-left: 1.5rem;
        }
        h2:before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.5em;
            height: 1.2em;
            width: 5px;
            background: #3498db;
            border-radius: 3px;
        }
        h3 {
            font-size: 1.5rem;
            color: #2c3e50;
        }
        p {
            margin-bottom: 1.2em;
            font-size: 1.05rem;
        }
        .hero {
            background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
            color: white;
            padding: 5rem 0;
            position: relative;
            overflow: hidden;
        }
        .hero-content {
            position: relative;
            z-index: 2;
        }
        .hero-title {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .hero-subtitle {
            font-size: 1.5rem;
            font-weight: 300;
            margin-bottom: 2rem;
            opacity: 0.9;
        }
        .card {
            border-radius: 10px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow: hidden;
            background: white;
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .card-header {
            padding: 1.5rem;
            border-bottom: 1px solid #eee;
        }
        .card-body {
            padding: 1.5rem;
        }
        .feature-icon {
            font-size: 2.5rem;
            color: #3498db;
            margin-bottom: 1rem;
        }
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 2rem 0;
        }
        .comparison-table th, .comparison-table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        .comparison-table th {
            background-color: #f8f9fa;
            font-weight: 600;
            color: #2c3e50;
        }
        .comparison-table tr:hover td {
            background-color: #f8f9fa;
        }
        .feature-badge {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .feature-badge.blue {
            background-color: #e3f2fd;
            color: #1976d2;
        }
        .feature-badge.green {
            background-color: #e8f5e9;
            color: #388e3c;
        }
        .feature-badge.orange {
            background-color: #fff3e0;
            color: #f57c00;
        }
        .feature-badge.purple {
            background-color: #f3e5f5;
            color: #8e24aa;
        }
        .feature-badge.red {
            background-color: #ffebee;
            color: #d32f2f;
        }
        .mermaid-container {
            background: white;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            margin: 2rem 0;
        }
        .image-container {
            margin: 2rem 0;
            text-align: center;
        }
        .image-container img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        .footer {
            background-color: #2c3e50;
            color: white;
            padding: 3rem 0;
            margin-top: 4rem;
        }
        .footer a {
            color: #3498db;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .footer a:hover {
            color: #5dade2;
        }
        .highlight-box {
            background-color: #f8f9fa;
            border-left: 4px solid #3498db;
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 0 8px 8px 0;
        }
        .tooltip {
            position: relative;
            display: inline-block;
            border-bottom: 1px dotted #666;
            cursor: help;
        }
        .tooltip .tooltiptext {
            visibility: hidden;
            width: 200px;
            background-color: #555;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -100px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.9rem;
        }
        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            .hero-subtitle {
                font-size: 1.2rem;
            }
            h1 {
                font-size: 2rem;
            }
            h2 {
                font-size: 1.7rem;
            }
            h3 {
                font-size: 1.3rem;
            }
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero">
        <div class="container mx-auto px-6 hero-content">
            <h1 class="hero-title">消息中间件对比指南</h1>
            <p class="hero-subtitle">深入解析主流消息中间件的架构、特性与应用场景</p>
            <div class="flex flex-wrap items-center mt-8">
                <div class="mr-6 mb-4">
                    <span class="inline-block bg-white bg-opacity-20 px-4 py-2 rounded-full font-medium"><i class="fas fa-check-circle mr-2"></i>架构解析</span>
                </div>
                <div class="mr-6 mb-4">
                    <span class="inline-block bg-white bg-opacity-20 px-4 py-2 rounded-full font-medium"><i class="fas fa-chart-line mr-2"></i>性能对比</span>
                </div>
                <div class="mr-6 mb-4">
                    <span class="inline-block bg-white bg-opacity-20 px-4 py-2 rounded-full font-medium"><i class="fas fa-cogs mr-2"></i>适用场景</span>
                </div>
            </div>
        </div>
    </section>

    <div class="container mx-auto px-6 py-12 max-w-6xl">
        <!-- Introduction Section -->
        <section>
            <p class="text-lg text-gray-700 mb-6">随着互联网和企业级应用的复杂性不断增加，系统间的通信和数据交换需求也变得愈发重要和多样化。为了满足高并发、高可用和高扩展性的需求，消息中间件应运而生，并在众多应用场景中扮演着核心角色。</p>
            
            <div class="image-container">
                <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1721276624059-11dce8f9-4f79-4d73-82b2-0b5ad4cb1e6e.png" alt="消息中间件概览" class="mx-auto">
            </div>
            
            <p class="text-lg text-gray-700 mb-6">你们可能已经听说过一些常见的消息中间件，比如ActiveMQ、RabbitMQ、Kafka和RocketMQ等。它们各自有不同的架构设计、性能特性和使用场景，但其共同目标是实现异步通信、解耦系统组件、提高系统的可靠性和扩展性。我们将从多个角度进行比较，包括架构设计、性能和吞吐量、可靠性和保证机制、扩展性和伸缩性、易用性和运维管理，以及社区和生态系统支持。通过这种全面的比较，大家不仅能够了解每种消息中间件的优缺点，还能根据具体的业务需求选择最合适的解决方案。</p>
        </section>

        <!-- Definition Section -->
        <section class="mt-16">
            <h2>消息中间件的定义和作用</h2>
            <p class="text-lg text-gray-700">消息中间件（Message-Oriented Middleware, MOM）是分布式系统中的一种关键组件，用于在不同的应用程序或服务之间传递消息，从而实现系统解耦、异步通信、数据分发和负载均衡。它作为系统之间的桥梁，确保消息的可靠传输和处理，为构建高可用、高并发和高扩展性的应用系统提供了重要支持。</p>
            
            <div class="image-container">
                <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1721276880182-6483d755-f212-4116-8c21-85373e330a2d.png" alt="消息中间件工作原理" class="mx-auto">
            </div>
            
            <div class="grid md:grid-cols-2 gap-8 mt-8">
                <div class="card">
                    <div class="card-header">
                        <h3 class="text-xl font-semibold">定义</h3>
                    </div>
                    <div class="card-body">
                        <p>消息中间件是一种软件基础设施，主要用于在分布式系统中的不同组件之间传递数据和消息。它提供了一个异步消息传递机制，允许应用程序通过消息队列进行通信，而无需直接相互调用。这种机制帮助系统实现了松耦合，提高了系统的灵活性和可扩展性。</p>
                    </div>
                </div>
                
                <div class="card">
                    <div class="card-header">
                        <h3 class="text-xl font-semibold">作用</h3>
                    </div>
                    <div class="card-body">
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <i class="fas fa-link text-blue-500 mt-1 mr-3"></i>
                                <span><strong>系统解耦</strong>：允许系统中的各个组件独立运行和演化，而不需要直接相互依赖</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-exchange-alt text-blue-500 mt-1 mr-3"></i>
                                <span><strong>异步通信</strong>：发送方在发送消息后无需等待接收方处理完成即可继续执行</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-balance-scale-right text-blue-500 mt-1 mr-3"></i>
                                <span><strong>负载均衡</strong>：在多台服务器之间分发消息，实现负载均衡</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-database text-blue-500 mt-1 mr-3"></i>
                                <span><strong>消息持久化</strong>：确保消息不会因系统故障而丢失</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            
            <div class="highlight-box mt-8">
                <h3 class="text-xl font-semibold mb-4">典型应用场景</h3>
                <div class="grid md:grid-cols-3 gap-6">
                    <div class="flex items-start">
                        <i class="fas fa-shopping-cart text-blue-500 text-2xl mr-4 mt-1"></i>
                        <div>
                            <h4 class="font-semibold mb-2">订单处理系统</h4>
                            <p class="text-gray-700">各个步骤可以独立执行，并通过消息进行协调和通信，确保订单处理的高效性和可靠性。</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <i class="fas fa-chart-bar text-blue-500 text-2xl mr-4 mt-1"></i>
                        <div>
                            <h4 class="font-semibold mb-2">日志收集与分析</h4>
                            <p class="text-gray-700">各个服务的日志可以通过消息中间件集中收集并传输到日志分析系统进行处理。</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <i class="fas fa-network-wired text-blue-500 text-2xl mr-4 mt-1"></i>
                        <div>
                            <h4 class="font-semibold mb-2">微服务架构</h4>
                            <p class="text-gray-700">通过异步消息传递和事件驱动机制，帮助微服务实现松耦合和高可用性。</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Common Middleware Section -->
        <section class="mt-16">
            <h2>常见的消息中间件</h2>
            <p class="text-lg text-gray-700 mb-8">在现代分布式系统和微服务架构中，常见的消息中间件有很多种，每种都有其独特的设计和应用场景。以下是一些常见的消息中间件，以及它们的主要特点和用途。</p>
            
            <div class="image-container">
                <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1721276923211-4857e9b7-7d4c-4a9d-82e4-4584ec7cde0c.png" alt="常见消息中间件" class="mx-auto">
            </div>
            
            <div class="grid md:grid-cols-2 gap-8 mt-8">
                <!-- Kafka Card -->
                <div class="card">
                    <div class="card-header bg-blue-50">
                        <div class="flex items-center">
                            <i class="fab fa-apache text-3xl text-blue-700 mr-3"></i>
                            <h3 class="text-xl font-semibold text-blue-800">Apache Kafka</h3>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="flex flex-wrap mb-4">
                            <span class="feature-badge blue"><i class="fas fa-bolt mr-1"></i> 高吞吐量</span>
                            <span class="feature-badge blue"><i class="fas fa-shield-alt mr-1"></i> 高可用性</span>
                            <span class="feature-badge blue"><i class="fas fa-hdd mr-1"></i> 持久化</span>
                            <span class="feature-badge blue"><i class="fas fa-expand mr-1"></i> 横向扩展</span>
                        </div>
                        <p class="mb-4">Apache Kafka 是一个分布式流处理平台，最初由 LinkedIn 开发，并随后成为 Apache 基金会的顶级项目。Kafka 主要用于构建实时数据管道和流应用程序。</p>
                        <div class="bg-gray-50 p-3 rounded-lg">
                            <h4 class="font-semibold text-blue-700 mb-2">适用场景</h4>
                            <ul class="list-disc list-inside text-gray-700 space-y-1">
                                <li>实时数据分析</li>
                                <li>日志收集和监控</li>
                                <li>数据流处理</li>
                                <li>事件驱动架构</li>
                            </ul>
                        </div>
                    </div>
                </div>
                
                <!-- RabbitMQ Card -->
                <div class="card">
                    <div class="card-header bg-green-50">
                        <div class="flex items-center">
                            <i class="fas fa-rabbit text-3xl text-green-700 mr-3"></i>
                            <h3 class="text-xl font-semibold text-green-800">RabbitMQ</h3>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="flex flex-wrap mb-4">
                            <span class="feature-badge green"><i class="fas fa-project-diagram mr-1"></i> 多协议支持</span>
                            <span class="feature-badge green"><i class="fas fa-random mr-1"></i> 灵活路由</span>
                            <span class="feature-badge green"><i class="fas fa-check-circle mr-1"></i> 可靠性</span>
                            <span class="feature-badge green"><i class="fas fa-tools mr-1"></i> 管理工具</span>
                        </div>
                        <p class="mb-4">RabbitMQ 是一个开源的消息代理软件，实现了高级消息队列协议（AMQP）。它支持多种消息传递协议，并提供了丰富的特性来实现消息的路由、负载均衡和持久化。</p>
                        <div class="bg-gray-50 p-3 rounded-lg">
                            <h4 class="font-semibold text-green-700 mb-2">适用场景</h4>
                            <ul class="list-disc list-inside text-gray-700 space-y-1">
                                <li>任务队列</li>
                                <li>即时消息系统</li>
                                <li>微服务通信</li>
                                <li>事件驱动架构</li>
                            </ul>
                        </div>
                    </div>
                </div>
                
                <!-- ActiveMQ Card -->
                <div class="card">
                    <div class="card-header bg-orange-50">
                        <div class="flex items-center">
                            <i class="fab fa-java text-3xl text-orange-700 mr-3"></i>
                            <h3 class="text-xl font-semibold text-orange-800">Apache ActiveMQ</h3>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="flex flex-wrap mb-4">
                            <span class="feature-badge orange"><i class="fas fa-plug mr-1"></i> 多协议支持</span>
                            <span class="feature-badge orange"><i class="fas fa-check-double mr-1"></i> 高可用性</span>
                            <span class="feature-badge orange"><i class="fas fa-puzzle-piece mr-1"></i> 灵活集成</span>
                            <span class="feature-badge orange"><i class="fas fa-tachometer-alt mr-1"></i> 管理监控</span>
                        </div>
                        <p class="mb-4">Apache ActiveMQ 是一个功能丰富的消息中间件，支持多种消息传递协议，包括 JMS（Java Message Service）、STOMP、AMQP 等。ActiveMQ 提供了强大的特性，适用于企业级消息传递需求。</p>
                        <div class="bg-gray-50 p-3 rounded-lg">
                            <h4 class="font-semibold text-orange-700 mb-2">适用场景</h4>
                            <ul class="list-disc list-inside text-gray-700 space-y-1">
                                <li>企业应用集成</li>
                                <li>事件驱动架构</li>
                                <li>异步任务处理</li>
                                <li>分布式系统通信</li>
                            </ul>
                        </div>
                    </div>
                </div>
                
                <!-- Pulsar Card -->
                <div class="card">
                    <div class="card-header bg-purple-50">
                        <div class="flex items-center">
                            <i class="fas fa-project-diagram text-3xl text-purple-700 mr-3"></i>
                            <h3 class="text-xl font-semibold text-purple-800">Apache Pulsar</h3>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="flex flex-wrap mb-4">
                            <span class="feature-badge purple"><i class="fas fa-layer-group mr-1"></i> 分层架构</span>
                            <span class="feature-badge purple"><i class="fas fa-users mr-1"></i> 多租户支持</span>
                            <span class="feature-badge purple"><i class="fas fa-stream mr-1"></i> 流和批处理</span>
                            <span class="feature-badge purple"><i class="fas fa-shield-virus mr-1"></i> 高可用性</span>
                        </div>
                        <p class="mb-4">Apache Pulsar 是一个分布式的发布-订阅消息系统，最初由 Yahoo 开发，并成为 Apache 基金会的顶级项目。Pulsar 提供了强大的特性，适用于大规模数据流和实时分析应用。</p>
                        <div class="bg-gray-50 p-3 rounded-lg">
                            <h4 class="font-semibold text-purple-700 mb-2">适用场景</h4>
                            <ul class="list-disc list-inside text-gray-700 space-y-1">
                                <li>实时数据流处理</li>
                                <li>日志收集和分析</li>
                                <li>事件驱动架构</li>
                                <li>IoT 数据处理</li>
                            </ul>
                        </div>
                    </div>
                </div>
                
                <!-- RocketMQ Card -->
                <div class="card md:col-span-2">
                    <div class="card-header bg-red-50">
                        <div class="flex items-center">
                            <i class="fas fa-rocket text-3xl text-red-700 mr-3"></i>
                            <h3 class="text-xl font-semibold text-red-800">RocketMQ</h3>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="flex flex-wrap mb-4">
                            <span class="feature-badge red"><i class="fas fa-tachometer-alt mr-1"></i> 高吞吐量</span>
                            <span class="feature-badge red"><i class="fas fa-stopwatch mr-1"></i> 低延迟</span>
                            <span class="feature-badge red"><i class="fas fa-lock mr-1"></i> 高可靠性</span>
                            <span class="feature-badge red"><i class="fas fa-sliders-h mr-1"></i> 灵活消息模型</span>
                        </div>
                        <p class="mb-4">Apache RocketMQ 是一个分布式消息中间件，最初由阿里巴巴开发，并成为 Apache 基金会的顶级项目。RocketMQ 提供了高性能和高可靠性的消息传递服务，适用于大规模数据流应用。</p>
                        <div class="bg-gray-50 p-3 rounded-lg">
                            <h4 class="font-semibold text-red-700 mb-2">适用场景</h4>
                            <ul class="list-disc list-inside text-gray-700 space-y-1">
                                <li>订单处理系统</li>
                                <li>金融交易系统</li>
                                <li>实时数据分析</li>
                                <li>微服务通信</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Comparison Section -->
        <section class="mt-16">
            <h2>区别对比</h2>
            <p class="text-lg text-gray-700 mb-8">从架构设计的角度对比常见的消息中间件（如Apache Kafka、RabbitMQ、ActiveMQ、Apache Pulsar和RocketMQ），它们在节点设计、消息模型、数据持久化、可靠性保障、扩展性和消息路由等方面的差异和特点。</p>
            
            <div class="mermaid-container">
                <div class="mermaid">
                    flowchart TD
                        A[消息中间件对比] --> B[架构设计]
                        A --> C[消息模型]
                        A --> D[数据持久化]
                        A --> E[可靠性保障]
                        A --> F[扩展性]
                        
                        B --> B1[Kafka: 分布式架构, 分区和副本]
                        B --> B2[RabbitMQ: 插件化架构, 多种节点角色]
                        B --> B3[ActiveMQ: 多协议支持, Broker设计]
                        B --> B4[Pulsar: 分层架构, 多租户支持]
                        B --> B5[RocketMQ: 高性能设计, 分布式架构]
                        
                        C --> C1[Kafka: 发布/订阅, 分区顺序性]
                        C --> C2[RabbitMQ: 点对点, 发布/订阅]
                        C --> C3[ActiveMQ: 点对点, 发布/订阅]
                        C --> C4[Pulsar: 流和批处理, 发布/订阅]
                        C --> C5[RocketMQ: 点对点, 发布/订阅]
                        
                        D --> D1[Kafka: 日志存储]
                        D --> D2[RabbitMQ: 消息持久化]
                        D --> D3[ActiveMQ: 磁盘存储]
                        D --> D4[Pulsar: 分布式存储]
                        D --> D5[RocketMQ: 文件存储]
                        
                        E --> E1[Kafka: 数据复制, 消息确认]
                        E --> E2[RabbitMQ: 消息确认, 死信队列]
                        E --> E3[ActiveMQ: 持久化和事务]
                        E --> E4[Pulsar: 数据复制, 消息确认]
                        E --> E5[RocketMQ: 数据复制, 消息确认]
                        
                        F --> F1[Kafka: 横向扩展]
                        F --> F2[RabbitMQ: 插件增强]
                        F --> F3[ActiveMQ: 集群支持]
                        F --> F4[Pulsar: 横向扩展]
                        F --> F5[RocketMQ: 高扩展性]
                </div>
            </div>
            
            <div class="overflow-x-auto mt-8">
                <table class="comparison-table">
                    <thead>
                        <tr>
                            <th>特性</th>
                            <th>Kafka</th>
                            <th>RabbitMQ</th>
                            <th>ActiveMQ</th>
                            <th>Pulsar</th>
                            <th>RocketMQ</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><strong>架构设计</strong></td>
                            <td>分布式架构，分区和副本</td>
                            <td>插件化架构，多种节点角色</td>
                            <td>多协议支持，Broker设计</td>
                            <td>分层架构，多租户支持</td>
                            <td>高性能设计，分布式架构</td>
                        </tr>
                        <tr>
                            <td><strong>消息模型</strong></td>
                            <td>发布/订阅，分区顺序性</td>
                            <td>点对点，发布/订阅</td>
                            <td>点对点，发布/订阅</td>
                            <td>流和批处理，发布/订阅</td>
                            <td>点对点，发布/订阅</td>
                        </tr>
                        <tr>
                            <td><strong>数据持久化</strong></td>
                            <td>日志存储</td>
                            <td>消息持久化</td>
                            <td>磁盘存储</td>
                            <td>分布式存储</td>
                            <td>文件存储</td>
                        </tr>
                        <tr>
                            <td><strong>可靠性保障</strong></td>
                            <td>数据复制，消息确认</td>
                            <td>消息确认，死信队列</td>
                            <td>持久化和事务</td>
                            <td>数据复制，消息确认</td>
                            <td>数据复制，消息确认</td>
                        </tr>
                        <tr>
                            <td><strong>扩展性</strong></td>
                            <td>横向扩展</td>
                            <td>插件增强</td>
                            <td>集群支持</td>
                            <td>横向扩展</td>
                            <td>高扩展性</td>
                        </tr>
                        <tr>
                            <td><strong>最佳适用场景</strong></td>
                            <td>实时数据流处理</td>
                            <td>任务队列，微服务通信</td>
                            <td>企业应用集成</td>
                            <td>大规模数据流</td>
                            <td>高并发交易系统</td>
                        </tr>
                    </tbody>
                </table>
            </div>
            
            <div class="mt-12 grid md:grid-cols-2 gap-8">
                <div class="card">
                    <div class="card-header bg-blue-50">
                        <h3 class="text-xl font-semibold text-blue-800">如何选择消息中间件？</h3>
                    </div>
                    <div class="card-body">
                        <ul class="space-y-4">
                            <li class="flex items-start">
                                <div class="bg-blue-100 rounded-full w-8 h-8 flex items-center justify-center flex-shrink-0 mr-3">
                                    <i class="fas fa-question-circle text-blue-600"></i>
                                </div>
                                <div>
                                    <h4 class="font-medium">消息吞吐量要求</h4>
                                    <p class="text-gray-600 text-sm">Kafka和RocketMQ适合高吞吐量场景</p>
                                </div>
                            </li>
                            <li class="flex items-start">
                                <div class="bg-blue-100 rounded-full w-8 h-8 flex items-center justify-center flex-shrink-0 mr-3">
                                    <i class="fas fa-clock text-blue-600"></i>
                                </div>
                                <div>
                                    <h4 class="font-medium">延迟要求</h4>
                                    <p class="text-gray-600 text-sm">RabbitMQ和ActiveMQ适合低延迟场景</p>
                                </div>
                            </li>
                            <li class="flex items-start">
                                <div class="bg-blue-100 rounded-full w-8 h-8 flex items-center justify-center flex-shrink-0 mr-3">
                                    <i class="fas fa-sitemap text-blue-600"></i>
                                </div>
                                <div>
                                    <h4 class="font-medium">架构复杂性</h4>
                                    <p class="text-gray-600 text-sm">Pulsar和Kafka架构更复杂但扩展性好</p>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
                
                <div class="card">
                    <div class="card-header bg-green-50">
                        <h3 class="text-xl font-semibold text-green-800">关键考量因素</h3>
                    </div>
                    <div class="card-body">
                        <ul class="space-y-4">
                            <li class="flex items-start">
                                <div class="bg-green-100 rounded-full w-8 h-8 flex items-center justify-center flex-shrink-0 mr-3">
                                    <i class="fas fa-cogs text-green-600"></i>
                                </div>
                                <div>
                                    <h4 class="font-medium">运维复杂度</h4>
                                    <p class="text-gray-600 text-sm">RabbitMQ和ActiveMQ相对简单</p>
                                </div>
                            </li>
                            <li class="flex items-start">
                                <div class="bg-green-100 rounded-full w-8 h-8 flex items-center justify-center flex-shrink-0 mr-3">
                                    <i class="fas fa-users text-green-600"></i>
                                </div>
                                <div>
                                    <h4 class="font-medium">社区支持</h4>
                                    <p class="text-gray-600 text-sm">Kafka和RabbitMQ社区活跃</p>
                                </div>
                            </li>
                            <li class="flex items-start">
                                <div class="bg-green-100 rounded-full w-8 h-8 flex items-center justify-center flex-shrink-0 mr-3">
                                    <i class="fas fa-language text-green-600"></i>
                                </div>
                                <div>
                                    <h4 class="font-medium">协议支持</h4>
                                    <p class="text-gray-600 text-sm">ActiveMQ支持最多协议</p>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <!-- Footer -->
    <footer class="footer">
        <div class="container mx-auto px-6">
            <div class="flex flex-col items-center">
                <div class="text-2xl font-bold mb-2">技术小馆</div>
                <div class="text-gray-300 mb-6">探索技术前沿，分享知识价值</div>
                <div class="mb-4">
                    <a href="http://www.yuque.com/jtostring" class="text-gray-300 hover:text-white transition duration-300">
                        <i class="fas fa-globe mr-2"></i> www.yuque.com/jtostring
                    </a>
                </div>
                <div class="text-sm text-gray-400 mt-4">
                    © 2024 技术小馆. 保留所有权利.
                </div>
            </div>
        </div>
    </footer>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>
```